<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title><?php echo $page_title; ?></title>
        <META NAME="Description" CONTENT="">
            <link href="<?php echo base_url() . 'assets/css/' ?>styles.css" rel="stylesheet" type="text/css" media="screen" />
            <script type="text/javascript" src="<?php echo base_url (). 'assets/jquery/'; ?>jquery-1.4.3.min.js"></script>
            <script type="text/javascript" src="<?php echo base_url () ?>assets/fancybox/jquery.fancybox-1.3.2.js"></script>
            <link rel="stylesheet" type="text/css" href="<?php echo base_url () ?>assets/fancybox/jquery.fancybox-1.3.2.css" media="screen" />
                <script type="text/javascript">
                    $(document).ready(

                    function(){
                         $('.list  tr:even').addClass('highlight');
                        $("a#example5").fancybox();
                        $("#various3").fancybox({
				'width'				: '50%',
				'height'			: '130%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
                    }
                );
                </script>
                </head>
                <body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
                    <div id="wrapper-top" align="center">
                        <table width="1000px">
                            <tr>
                                <td width="207px" valign="top"><a href="<?php echo base_url(); ?>"><img src="<?php echo base_url() . 'assets/css/' ?>images/anima-place.png" border="0"/></a></td>
                                <td  valign="top" id="wrapper-menu">
                                    <div id="menu" >
                                        <ul>
                                            <li><a href="<?php echo base_url(); ?>"><img border="0" src="<?php echo base_url() . 'assets/css/' ?>images/home.png"/></a></li>
                                            <li><a href="<?php echo base_url() . 'seatting-falin' ?>">SEATTING-FALLIN</a></li>
                                            <li><a href="<?php echo base_url() . 'zoo-market'; ?>">ZOO-MARKET</a></li>
                                            <li><a href="<?php echo base_url() . 'animus' ?>">ANIMUS</a></li>
                                            <li><a href="<?php echo base_url() . 'doggy-flirt' ?>">DOGGY-FLIRT</a></li>
                                            <?php if ($this->session->userdata('user_id') == TRUE) {
 ?>
                                                <li><a href="<?php echo site_url('accueil/logout'); ?>">LOGOUT</a></li>
<?php } ?>
                                        </ul>
                                    </div>
                                    <!--END MENU-->
                                </td>
                            </tr>
                        </table>
                    </div>
                    <!--END WRAPPER-TOP-->
                    <div id="wrapper" align="center">
                        <div id="contain" align="center">
                            <img src="<?php echo base_url() . 'assets/css/' ?>images/border_left.png" style="left:0px" class="contain_border"/>
                            <img src="<?php echo base_url() . 'assets/css/' ?>images/border_right.png" style="right:0px" class="contain_border"/>
                            <div id="wrapper-banner" align="left">
                                <?php
                                            $login_style = 'style="height:204px;"';
                                            if ($this->session->userdata('user_id') == TRUE) {
                                                $login_style = 'style="height:180px;"';
                                            }
                                            if ($login_error) {
                                                $login_style = 'style="height: 254px;"';
                                            }
                                            if ($validate_error) {
                                                $login_style = 'style="height: 274px;"';
                                            }

                                            $user_id = $this->session->userdata('user_id');
                                ?>
                                            <div id="login" align="center" <?php echo $login_style; ?>>
                                                <img src="<?php echo base_url() . 'assets/css/' ?>images/bgrtop_login.png" class="bgrtop"/>
                                                <img src="<?php echo base_url() . 'assets/css/' ?>images/bgrbottom_login.png" class="bgrbottom"/>
                                                <div class="contenu">
                                            <?php if ($this->session->userdata('user_id') == FALSE) { ?>
                                                <div id="titre_login" >CONNEXION CLIENT</div>
                                            <?php echo form_open('accueil/login'); ?>
                                                <table id="form_login">
                                                    <tr><td>Email</td><td><input type="text" name="email" class="input_login"/></td></tr>
                                                    <tr><td colspan="2"><?php echo form_error('email') ?></td></tr>
                                                    <tr><td>Passe</td><td><input type="password" name="pass" class="input_login"/></td></tr>
                                                    <tr><td colspan="2"><?php echo form_error('pass') ?></td></tr>
                                                </table>
                                                <input type="submit" value="LOGIN" name="submit" id="submit" />
                                        <?php if (isset($login_error))
                                                    echo '<br/>' . $login_error; ?>
<?php echo form_close(); ?>
                                                <div id="pass_oublier">
                                                    <a id="various3" href="<?php echo site_url('accueil/register') ?>">Inscription</a> / <a href="<?php echo site_url('accueil/forgot_pass') ?>">Mot de passe oublié?</a>
                                                </div>
                                            <?php } else {
 ?>
                                            <table>
                                            <?php
                                                if ($avatar->num_rows() > 0) {
                                                    $ava = $avatar->row();
                                                }
                                                $image_path = './assets/avatar/images/' . $ava->gravatar;
                                                if ($ava->gravatar != '') {
                                                    if (file_exists($image_path)) {
                                                        $image_path = base_url() . './assets/avatar/images/' . $ava->gravatar;
                                                    } else {
                                                        $image_path = base_url() . 'assets/noimage.gif';
                                                    }
                                                } else {
                                                    $image_path = base_url() . 'assets/noimage.gif';
                                                }
                                            ?>
                                                <tr>
                                                    <td>
                                                        <img style="width: 80px" src="<?php echo $image_path ?>"/>
                                                    </td>
                                                    <td style="font-size: larger">Bonjour<br/> <a href="<?php echo site_url('accueil/edit_profile') . '/' . $user_id; ?>"><?php echo $this->session->userdata('display_name') ?></a></td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2"><a href="<?php echo site_url('accueil/change_pass') . '/' . $user_id; ?>">Mot de passe | </a>
                                                        <a href="<?php echo site_url('accueil/logout'); ?>">Déconnnexion</a></td>
                                                    </tr>
                                                </table>
<?php } ?>
                                        <!--END pass_oublier-->
                                    </div>

                                    <!--END CONTENU-->
                                </div>
                                <!--END LOGIN-->
                                <div id="banner" align="right">
                                    <div id="titre_banner">BIENVENU SUR NOTRE SITE WEB
                                        <p>Bienvenue sur notre site web<br/><br/>Nous vous souhaitons une bonne visite,<br/><br/> et restons à votre disposition pour tout<br/><br/> renseignement</p></div>
                                </div>
                                <!--END BANNER-->
                            </div>
                            <!--END WRAPPER-BANNER-->
<div id="news_detail_all">